set(zyp_srcs "src/zyp_usb.c")

idf_component_register(
    SRCS "${zyp_srcs}"
    INCLUDE_DIRS "include"                                  
               "E:/D_WorkCode/ESP32/totall_project/emmc/managed_components/espressif__esp_tinyusb/include"
               "E:/D_WorkCode/ESP32/totall_project/emmc/managed_components/espressif__tinyusb/src"
               "E:/D_WorkCode/ESP32/totall_project/emmc/components/usb_drive/managed_components/espressif__tinyusb/src/common"
               "../zyp_log/include"
               "../mmc_drive/include"
    REQUIRES driver sdmmc freertos esp_psram esp_timer esp_system
)

# 定define CFG_TUSB_OS_INC_PATH（if sava TU_INCLUDE_PATH constitution）
# target_compile_definitions(__idf_usb_drive PRIVATE CFG_TUSB_OS_INC_PATH='"freertos"')
set_source_files_properties(${zyp_srcs} PROPERTIES COMPILE_FLAGS "-DCFG_TUSB_OS_INC_PATH=freertos/")
